import { request } from '@/utils/request';
import Api from '@/core/permission/modules/deployment/index';
/**
 * @description 获取单个节点信息
 * @returns
 */
export function userTaskProperties(data) {
  return request({
    url: Api.userTaskProperties,
    method: 'get',
    params: data,
  });
}
/**
 * @description 更新单个节点信息
 * @returns
 */
export function saveUserTaskProperties(data) {
  return request({
    url: Api.saveUserTaskProperties,
    method: 'post',
    data,
  });
}
/**
 * @description 更新流程属性信息
 * @returns
 */
export function saveProcessProperties(data) {
  return request({
    url: Api.saveProcessProperties,
    method: 'post',
    data,
  });
}
/**
 * @description 更新流程属性信息
 * @returns
 */
export function getProcessProperties(data) {
  return request({
    url: Api.getProcessProperties,
    method: 'get',
    params:data,
  });
}
/**
 * @description 更新流程属性信息
 * @returns
 */
export function getFlowParamsTemplate() {
  return request({
    url: Api.getFlowParamsTemplate,
    method: 'get',
  });
}
/**
 * @description 获取指定流程下的临时变量
 * @returns
 */
export function getTemporaryVariable(data) {
  return request({
    url: Api.getTemporaryVariable,
    method: 'get',
    params:data,
  });
}
/**
 * @description 获取指定流程下的临时变量
 * @returns
 */
export function getTimeoutEntityList(data) {
  return request({
    url: Api.getTimeoutEntityList,
    method: 'get',
    params:data,
  });
}
